package com.xm.pojo;

import org.apache.poi.xssf.usermodel.XSSFCellStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by wzl on 2018/4/16.
 * 设备历史流量数据表
 */
public class FlowHistory implements Serializable {
    //主键
    private Long flowHistoryId;
    //设备ID
    private Integer deviceId;
    //流量
    private Float flow;
    //流速
    private Float speed;
    //正向总量
    private Float totalPositive;
    //反向总量
    private Float totalNegative;
    //报警
    private Short alarm;
    //创建时间
    private Date createTime;
    //说明
    private String remark;
    //开始时间（查询用）
    private String startTime;
    //结束时间（查询用）
    private String endTime;
    //分页查询参数（查询用）
    private Integer start;
    //分页查询参数（查询用）
    private Integer length;
    //列头名（excel字段）
    private String headTextName;
    //对应字段名（excel字段）
    private String propertyName;
    //合并单元格数（excel字段）
    private Integer cols;
    //设置格式（excel字段）
    private XSSFCellStyle cellStyle;
    //设备名称（excel字段）
    private String deviceName;
    //创建日期（excel字段）
    private String excelTime;

    public FlowHistory(){

    }
    public FlowHistory(String headTextName, String propertyName){
        this.headTextName = headTextName;
        this.propertyName = propertyName;
    }

    public FlowHistory(String headTextName, String propertyName, Integer cols) {
        super();
        this.headTextName = headTextName;
        this.propertyName = propertyName;
        this.cols = cols;
    }

    public Long getFlowHistoryId() {
        return flowHistoryId;
    }

    public void setFlowHistoryId(Long flowHistoryId) {
        this.flowHistoryId = flowHistoryId;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Float getFlow() {
        return flow;
    }

    public void setFlow(Float flow) {
        this.flow = flow;
    }

    public Float getSpeed() {
        return speed;
    }

    public void setSpeed(Float speed) {
        this.speed = speed;
    }

    public Float getTotalPositive() {
        return totalPositive;
    }

    public void setTotalPositive(Float totalPositive) {
        this.totalPositive = totalPositive;
    }

    public Float getTotalNegative() {
        return totalNegative;
    }

    public void setTotalNegative(Float totalNegative) {
        this.totalNegative = totalNegative;
    }

    public Short getAlarm() {
        return alarm;
    }

    public void setAlarm(Short alarm) {
        this.alarm = alarm;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getHeadTextName() {
        return headTextName;
    }

    public void setHeadTextName(String headTextName) {
        this.headTextName = headTextName;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public Integer getCols() {
        return cols;
    }

    public void setCols(Integer cols) {
        this.cols = cols;
    }

    public XSSFCellStyle getCellStyle() {
        return cellStyle;
    }

    public void setCellStyle(XSSFCellStyle cellStyle) {
        this.cellStyle = cellStyle;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getExcelTime() {
        return excelTime;
    }

    public void setExcelTime(String excelTime) {
        this.excelTime = excelTime;
    }
}
